package com.ego.common.to;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @program: ego
 * @description: SKU数据模型 —— 用于传输
 * @author: KamTang
 * @create: 2022-11-29 10:15
 **/
@Setter
@Getter
public class SkuEsTo implements Serializable {

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;

    private Boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long categoryId;

    private String brandName;

    private String brandImg;

    private String categoryName;

    private List<Attrs> attrs;

    @Setter
    @Getter
    public static class Attrs {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
